<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<link rel="stylesheet" href="__STATIC__/Bootstrap/Css/bootstrap.min.css" />
	<link rel="stylesheet" type="text/css" href="__STATIC__/hdjs/hdjs.css"/>
	<link rel="stylesheet" href="__STATIC__/admin/Css/common.css" />
	<script src="__STATIC__/js/jquery-1.8.2.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="__STATIC__/hdjs/hdjs.min.js" type="text/javascript" charset="utf-8"></script>
	<style type="text/css">
		body{
			margin-bottom: 100px;
		}
            .page_hdcms{
                width:500px;
                margin-top: 20px;
                text-align: center;
                margin:0 auto;
                
                
            }
            .page_hdcms a{
                padding: 3px 5px;
                margin-left: 3px;
                border: 1px solid #CCCCCC;
                
            }
            .page_hdcms strong{
                padding: 3px 5px;
                margin-left: 3px;
                background: red;
                color: white;
            }
            .page_hdcms span{
                float: none;font-size: 12px;
            }
            .td{
                line-height:50px;
            }
	</style>
</head>
<body>
	<div class="container-fluid">
	<div class="row-fluid">
	<div class="span12">

	<table class="table table-bordered table-hover table-condensed">
		<tr class="success">
			<th class="th" style="text-align:center;">ID</th>
			<th class="th" style="width:150px;text-align:center;">订单号</th>
			<th class="th" style="width:300px;text-align:center;">收货信息</th>
			<th class="th" style="width:60px;text-align:center;">金额</th>
			<th class="th" style="width:60px;text-align:center;">订单时间</th>
			<th class="th">送货/支付</th>
			<th class="th">状态</th>
			<th class="th">操作</th>
		</tr>
		<foreach from='$ordeBillData' key="$k" value="$v">
			<tr class="info" >
				<td class="td" style="line-height:50px;">{$v.oid}</td>
				<td class="td">
					<a href="" target='_blank'>{$v.number}</a>
				</td>
				<td class="td">{$v.consignee},{$v.address},{$v.mobile}</td>
				<td class="td">{$v.amount}.00</td>
				<td class="td">{$v.time|date:'Y-m-d h:i:s',@@}</td>
				<td class="td">
					<ul>
						<li>送货时间：<span>{$v.delid}</span></li>
						<li>支付方式：<span>{$v.payid}</span></li>
					</ul>
				</td>
				<th class="th">{$v.status}</th>
				<td class="td">
					<a href="{|U:'GoodsList/index',array('gid' => $v['gid'])}" class="btn btn-success"><i class="icon-th icon-white"></i>详细列表</a>
					<a href="{|U:'removal',array('oid' => $v['oid'])}" class="btn btn-warning"><i class="icon-pencil icon-white"></i>发货</a>
					<a href="javascript:del_modal({$v.oid});" class="btn btn-danger"><i class="icon-trash icon-white"></i>完成</a>
				</td>
			</tr>
		</foreach>
	</table>
        <div class="page_hdcms">
            {$page}
        </div>
	</div>
	</div>
	</div>
</body>
</html>
<script type="text/javascript">
    function del_modal(oid){
        hd_modal({
            width: 400,//宽度
            height: 120,//高度
            title: '确认结束订单吗？该操作不可逆转',//标题
            content: '',//提示信息
            button: true,//显示按钮
            button_success: "确定",//确定按钮文字
            button_cancel: "取消",//关闭按钮文字
            timeout: 0,//自动关闭时间 0：不自动关闭
            shade: true,//背景遮罩
            shadeOpacity: 0.3,//背景透明度
            success: function () {//点击确定后的事件
                location.href='{|U:"overOrder"}' + '&oid=' + oid;
            },
            cancel: function () {//点击关闭后的事件

            }
        });
    }
</script>